import request from '@/utils/request'

// 登录方法
export function login(params) {
  return request({
    url: 'admin/member/login',
    method: 'post',
    params
  })
}

export function mySendMessage(params) {
  return request({
    url: 'dinner/im/private/message/send',
    method: 'post',
    params
  })
}

export function friendList(params) {
  return request({
    url: 'dinner/im/friend/list',
    method: 'post',
    params
  })
}
 
export function messageHistory(params) {
  return request({
    url: 'dinner/im/private/message/history',
    method: 'post',
    params
  })
}

export function messageRead(params) {
  return request({
    url: 'dinner/im/private/message/readed',
    method: 'post',
    params
  })
}

export function addFriend(params) {
  return request({
    url: 'dinner/im/private/message/addFriend',
    method: 'post',
    params
  })
}
